package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.UserContract;
import com.huopaolan.yohuoshop.Mvp.Model.UserModel;

import javax.inject.Inject;

import dagger.Module;
import dagger.Provides;

/**
 * 注册仓库
 */
@Module
public class RegisterModules {
    private UserContract.RegisterIView iView;

    @Inject
    public RegisterModules(UserContract.RegisterIView iView) {
        this.iView = iView;
    }

    @Provides
    public UserContract.RegisterIView providerIView() {
        return iView;
    }

    @Provides
    public UserContract.RegisterIModel providerIModel() {
        return new UserModel();
    }
}
